#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QCheckBox>
#include <QUrl>
#include <QLineEdit>
#include <DSettings>
#include <DBlurEffectWidget>
#include <QLabel>
#include <DTitlebar>
#include <DSearchEdit>
#include <DStackedWidget>
#include <QPushButton>
#include <QStandardPaths>
#include <QProcess>
#include <QFileInfo>
DWIDGET_USE_NAMESPACE
namespace Ui {
class Widget;
}



class Widget : public DBlurEffectWidget
{

    Q_OBJECT
public:
    explicit Widget(DBlurEffectWidget *parent = nullptr);
    ~Widget();
    void setTheme(bool,QColor);
    DTitlebar* getTitlebar();

private slots:

public:

    QUrl url;

    Ui::Widget *ui;
    bool themeIsDark;



private:
    void initUI();
    void chooseLeftMenu(int index);
    void updateUI();

private:
    QPushButton * left_list[14];
    QLabel *m_loaderror=new QLabel;
    int nowMenu=0; //定位当前菜单
    QColor main_color;
    int foot;
    DTitlebar *titlebar;

};

#endif // WIDGET_H
